package com.huage.courseplatform.application.controller;

import cn.dev33.satoken.annotation.SaCheckRole;
import cn.dev33.satoken.annotation.SaIgnore;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huage.courseplatform.application.model.dto.SysDictDTO;
import com.huage.courseplatform.application.model.entity.SysDict;
import com.huage.courseplatform.application.model.param.DictPARAM;
import com.huage.courseplatform.application.service.DictService;
import com.huage.courseplatform.framework.api.BaseController;
import com.huage.courseplatform.framework.model.param.PagePARAM;
import com.huage.courseplatform.framework.utils.ResultUtils;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/dict")
@Api(tags = "字典管理接口")
@Slf4j
@SaCheckRole("ROLE_ADMIN")
public class DictController extends BaseController<SysDict,SysDictDTO,DictPARAM,DictService> {
    @Override
    @SaIgnore
    public ResultUtils<Page<SysDictDTO>> getByPage(@RequestBody PagePARAM pagePARAM) throws IllegalAccessException {
        return super.getByPage(pagePARAM);
    }
}
